// WP3View.h : interface of the CWP3View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_WP3VIEW_H__F9FDB51A_C64F_4900_8F0C_5F55346AFE62__INCLUDED_)
#define AFX_WP3VIEW_H__F9FDB51A_C64F_4900_8F0C_5F55346AFE62__INCLUDED_

#include "PaintElement.h"	// Added by ClassView


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#define DRAG_NODRAG 0
#define DRAG_MOVE 1
#define DRAG_SIZE_BR 2


class CWP3View : public CScrollView
{
protected: // create from serialization only
	CWP3View();
	DECLARE_DYNCREATE(CWP3View)

// Attributes
public:
	CWP3Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWP3View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	int GetCurrentDesktopColorDepth();
	CSize m_sizeTotal;
	int m_DragStatus;
	CPoint m_DragPlace;
	CPaintElement* m_pDragElement;
	CPaintElement* m_pActiveElement;
	CDC	m_memDC;
	CBitmap m_memBMP;
	CSize m_memBMPsize;
	CMenu m_menu;
	virtual ~CWP3View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CWP3View)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in WP3View.cpp
inline CWP3Doc* CWP3View::GetDocument()
   { return (CWP3Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WP3VIEW_H__F9FDB51A_C64F_4900_8F0C_5F55346AFE62__INCLUDED_)
